#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class QPushButton;
class QLabel;
class QTimer;
class GuiContainerForm;
class Quit;
class CalculatorInterface;
class Clock;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    static QString staffID;
//    MainWindow(const QString &staff_id) {staffID = staff_id;}
    void CreatStatusBar(const QString&);
//    static void set_staffID(QString staffId) {staffID = staffId;}
//    static QString get_staffID() {return staffID;}
//    void closeEvent(QCloseEvent *event);
    bool eventFilter(QObject *target, QEvent *event);
    void displayStockRemind();

signals:
     void PushButtonHomePageResponse(QString);

private slots:
    void soltUpdateDateTime();
    void soltHomePageClicked();
    void soltCalculatorClicked();
    void slotClose();

private:
    Ui::MainWindow *ui;

    QLabel *m_date;
    QTimer *m_timer;
    QPushButton *phb_return_home_page;    
    GuiContainerForm *m_container;
    Quit *m_quit;
    CalculatorInterface *m_calculatorInterface;
    Clock *m_clock;
    bool m_close;
};

#endif // MAINWINDOW_H
